<?php

namespace app\reception\validate;

use think\Validate;

class NovelValidate extends Validate
{
    protected $rule = [
        'novel_id' => 'require|number|egt:1',
        'page' => 'number|gt:0',
        'limit' => 'number|gt:0',
        'order' => 'in:asc,desc',
    ];

    protected $message = [

    ];

    protected $scene = [
        'info' => ['novel_id'],
        'chapters' => ['novel_id', 'page', 'limit', 'order'],
    ];
}